require "db/migrate/migration_helper"
class CreatePerfilTags < ActiveRecord::Migration
extend(MigrationHelper)
  def self.up
    create_table :perfil_tags do |t|
      t.integer :tag_id, :null => false
      t.integer :usuario_id, :null => false

      t.timestamps
    end
     foreign_key(:perfil_tags,:tag_id, :tags)    
     foreign_key(:perfil_tags,:usuario_id, :usuarios)
  end

  def self.down
    drop_table :perfil_tags
  end
end
